import request from '@/utils/request'

// 查询服务保证配置列表
export function listItemGuaranteeConfig(query) {
  return request({
    url: '/itemGuaranteeConfig/itemGuaranteeConfig/list',
    method: 'get',
    params: query
  })
}

// 查询服务保证配置详细
export function getItemGuaranteeConfig(id) {
  return request({
    url: '/itemGuaranteeConfig/itemGuaranteeConfig/' + id,
    method: 'get'
  })
}

// 新增服务保证配置
export function addItemGuaranteeConfig(data) {
  return request({
    url: '/itemGuaranteeConfig/itemGuaranteeConfig',
    method: 'post',
    data: data
  })
}

// 修改服务保证配置
export function updateItemGuaranteeConfig(data) {
  return request({
    url: '/itemGuaranteeConfig/itemGuaranteeConfig',
    method: 'put',
    data: data
  })
}

// 删除服务保证配置
export function delItemGuaranteeConfig(id) {
  return request({
    url: '/itemGuaranteeConfig/itemGuaranteeConfig/' + id,
    method: 'delete'
  })
}
